import request from '@/utils/request'

/**
* 夹具信息分页查询
* @param {查询条件} data
*/
export function listCksFixtureinfo(query) {
  return request({
    url: 'business/CksFixtureinfo/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增夹具信息
* @param data
*/
export function addCksFixtureinfo(data) {
  return request({
    url: 'business/CksFixtureinfo',
    method: 'post',
    data: data,
  })
}
/**
* 修改夹具信息
* @param data
*/
export function updateCksFixtureinfo(data) {
  return request({
    url: 'business/CksFixtureinfo',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取夹具信息详情
* @param {Id}
*/
export function getCksFixtureinfo(id) {
  return request({
    url: 'business/CksFixtureinfo/' + id,
    method: 'get'
  })
}

/**
* 删除夹具信息
* @param {主键} pid
*/
export function delCksFixtureinfo(pid) {
  return request({
    url: 'business/CksFixtureinfo/delete/' + pid,
    method: 'delete'
  })
}
/**
* 重置工装使用次数，变更状态可以使用
* @param {主键} pid
*/
export function resetCksFixtureinfo(pid) {
    return request({
      url: 'business/CksFixtureinfo/reset/' + pid,
      method: 'put'
    })
  }